package com.youlu.campus.entity.ad;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户任务广告记录表
 */
@Getter
@Setter
@Document(collection = "user_task_ads_record")
public class UserTaskAdsRecord extends EntityBase {
    @Indexed
    private String activityId;
    @Indexed
    private String taskId;
    @Indexed
    private String userId;
    /**
     * 广告ID
     */
    private String adsInfoId;
    private Date startTime;
    private Date endTime;
    /**
     * 广告名
     */
    private String adsName;
    /**
     * 时长
     */
    private Integer duration;

    /**
     * 状态,doing:进行中,done:完成,cancel:取消
     */
    private String status;
    /**
     * 平台
     */
    private String platfrom = "qq";
    /**
     * 应用ID
     */
    private String appId;
}
